package player;

import gameEngine.RPSEnum;
import gameEngine.Result;

import java.util.ArrayList;

public class Player {
	private String name;
	private int score;
	private ArrayList<RPSEnum> moveList;
	
	public Player(String name, ArrayList<RPSEnum> moveList) {
		this.name = name;
		this.score = 0;
		
		this.moveList = moveList;
	}
	
	public Player(String name) {
		this.name = name;
		this.score = 0;
		
		int moveListLength = 20;
		
		for(int i = 0; i < moveListLength; i++) {
			
			int tempRandomValue = (int)Math.floor(Math.random()*2);
			
			switch(tempRandomValue) {
				case 0:
					moveList.add(RPSEnum.PAPER);
					break;
				case 1:
					moveList.add(RPSEnum.ROCK);
					break;
				case 2:
					moveList.add(RPSEnum.SCISSORS);
					break;
				default:
					break;
			}
		}
	}

	public String getName() {
		return name;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}
	
	
}
